home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Best of www.BestZips.com (Collector's Edition)
/
Best of WWW.BESTZIPS.COM Collector's Edition (JCSM Shareware) (JCS Marketing).ISO
/
prgtools
/
prtsut53.zip
/
SU1SRC.ZIP
/
REPDEM01.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1996-12-01
|
2KB
|
72 lines
unit Repdem01;
interface
uses
SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
StdCtrls, Forms, DBCtrls, DB, DBGrids, Buttons, DBTables, Grids,
ExtCtrls, Printers, PrnGridR, CB_Types, CB_MFunc;
type
Tdem01form = class(TForm)
DBGrid1: TDBGrid;
Panel1: TPanel;
DataSource1: TDataSource;
Panel2: TPanel;
Table1: TTable;
Table1CustNo: TFloatField;
Table1Company: TStringField;
Table1City: TStringField;
Table1Country: TStringField;
Table1Phone: TStringField;
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
PreView: TBitBtn;
Exit: TBitBtn;
Print: TBitBtn;
PrintGridReport1: TPrintGridReport;
procedure FormCreate(Sender: TObject);
procedure PreViewClick(Sender: TObject);
procedure ExitClick(Sender: TObject);
procedure PrintClick(Sender: TObject);
private
{ private declarations }
public
end;
var
dem01form: Tdem01form;
implementation
{$R *.DFM}
procedure Tdem01form.FormCreate(Sender: TObject);
begin
Table1.Open;
PrintGridReport1.Orientation := Portrait;
end;
procedure Tdem01form.PreViewClick(Sender: TObject);
begin
PrintGridReport1.OutputTo := poViewer;
PrintGridReport1.Execute;
end;
procedure Tdem01form.ExitClick(Sender: TObject);
begin
Close;
end;
procedure Tdem01form.PrintClick(Sender: TObject);
begin
PrintGridReport1.OutputTo := poPrinter;
PrintGridReport1.Execute;
end;
end.